import { jsx } from 'react/jsx-runtime';

function editText (props) {
    const name = props.className;
    let className = 'w-svg';
    if (name) {
        className += ' ' + name;
    }
    let fn = props.onClick;
    let fnClick;
    if (fn) {
        fnClick = (e) => {
            fn(e);
        };
    }
    return (jsx("span", { onClick: fnClick, className: className, style: { fontSize: props.fontSize, color: props.color }, children: jsx("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: jsx("path", { d: "M870.741333 361.685333h72.533334v601.770667c0 32-26.752 57.557333-59.733334 57.557333H132.266667c-32.853333 0-59.733333-25.6-59.733334-57.472V160.725333c0-31.786667 26.922667-57.429333 59.562667-57.429333H673.706667v72.533333H145.066667V948.48h725.674666V361.685333zM191.488 698.026667h263.509333v85.077333H191.488V698.026667z m0-178.389334h441.941333v85.077334H191.488v-85.077334z m550.186667-95.786666a41.898667 41.898667 0 0 1-72.533334-41.685334l179.456-331.690666a41.898667 41.898667 0 0 1 72.32 42.112l-179.2 331.264z" }) }) }));
}

export { editText as default };
